package org.apache.ibatis.test_clxmm.test02.proxy.service.handle;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class UserInvocationHandler implements InvocationHandler {

  //目标对象
  private Object target;


  public UserInvocationHandler() {

  }
  public UserInvocationHandler(Object tarket) {
    this.target = tarket;
  }


  @Override
  public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {


    Object invoke = method.invoke(target, args);

    return invoke;
  }

}
